const tab_user = () =>
    import('@/views/user/tabbar-user');
const UserCollect = () =>
    import('@/views/user/module-collect');
const UserAddress = () =>
    import('@/views/user/module-address');
const UserAddressEdit = () =>
    import('@/views/user/module-address-edit');
const UserServer = () =>
    import('@/views/user/module-server');
const UserHelp = () =>
    import('@/views/user/module-help');
const UserFeedback = () =>
    import('@/views/user/module-feedback');
const UserBusinessCard = () =>
    import('@/views/user/business-card');
const UserBusinessCustomers = () =>
    import('@/views/user/business-customers/index');
const UserMyIncome = () =>
    import('@/views/user/module-settlement/index');

const UserBusinessAdmin = () =>
    import('@/views/user/business-admin/index');
const UserAdminClass = () =>
    import('@/views/user/business-admin/classification');
const UserAdminDetail = () =>
    import('@/views/user/business-admin/detail');
const UserValidationCustomers = () =>
    import('@/views/user/validation-customers/index');
const UserBusinessClassification = () =>
    import('@/views/user/business-customers/classification');
const UserBusinessfollowfication = () =>
    import('@/views/user/business-customers/followfication');
const UserBusinessCustomerDetail = () =>
    import('@/views/user/business-customer-detail');
const UserCardShare = () =>
    import('@/views/user/card-share');
const ReceiveQrCode = () =>
    import('@/views/user/receive-qrcode');

const UserCardKf = () =>
    import('@/views/user/kf-card');

const UserInformation = () =>
    import('@/views/user/user-information-set');
const UserInfo_SetMobile = () =>
    import('@/views/user/user-information-set/set-mobile');
const UserInfo_SetNickname = () =>
    import('@/views/user/user-information-set/set-nickname');
const UserInfo_SetPassword = () =>
    import('@/views/user/user-information-set/set-password');

const UserOrderList = () =>
    import('@/views/user/order-list');
const UserOrderClientList = () =>
    import('@/views/user/order-list-client');
const UserAfterSaleList = () =>
    import('@/views/user/order-list-after');
const UserCouponList = () =>
    import('@/views/user/coupon-list');
const UserRefundList = () =>
    import('@/views/user/refund-list');
const AboutUs = () =>
    import('@/views/user/about-us');
const Protocol = () =>
    import('@/views/user/user-protocol');

const Tabbar = () =>
    import('@/components/Tabbar/');

const HomeTabbar = () =>
    import('@/components/HomeTabbar/');
const ModuleSettlement = () =>
    import('@/views/user/module-settlement/details');
const MemberCustomers = () =>
    import('@/views/user/member-customers');
const TenCard = () =>
    import('@/views/user/recharge/tencard');
const directli = () => import('@/views/user/direct')

export default [{
    path: '/user',
    name: 'user',
    meta: {
        keepAlive: true
    },
    components: { default: tab_user }
},
{
    path: '/user/direct/:id',
    name: 'direct',
    meta: {
        title: '小程序直播',
        keepAlive: true
    },
    component: directli

},
{
    path: '/user/collect',
    name: 'collect',
    meta: {
        title: "我的收藏",
        login: true
    },
    component: UserCollect
},
{
    path: '/user/address',
    name: 'address',
    props: true,
    meta: {
        title: "收货地址",
        login: true
    },
    component: UserAddress
},
{
    path: '/user/address/edit',
    name: 'address-edit',
    props: true,
    meta: {
        login: true
    },
    component: UserAddressEdit
},
{
    path: '/user/server',
    name: 'user-server',
    component: UserServer
},
{
    path: '/user/help',
    name: 'user-help',
    component: UserHelp,
    meta: {
        title: "帮助中心"
    },
},
{
    path: '/user/feedback',
    name: 'user-feedback',
    component: UserFeedback,
    meta: {
        title: "投诉建议"
    },
},
{
    path: '/user/information',
    name: 'user-information',
    meta: {
        title: "设置",
        login: true
    },
    component: UserInformation
},
{
    path: '/user/information/setMobile',
    name: 'user-info-setMobile',
    component: UserInfo_SetMobile,
    meta: {
        title: "手机号设置",
        login: true
    },
},
{
    path: '/user/information/setNickname',
    name: 'user-info-setNickname',
    component: UserInfo_SetNickname,
    meta: {
        title: "昵称设置",
        login: true
    },
},
{
    path: '/user/information/setPassword',
    name: 'user-info-setPassword',
    component: UserInfo_SetPassword,
    meta: {
        title: "密码设置",
        login: true
    },
},
{
    path: '/user/order/list/:active',
    name: 'user-order-list',
    props: true,
    component: UserOrderList,
    meta: {
        title: '我的订单',
        login: false
    }
},
{
    path: '/user/order/clientlist/:active',
    name: 'user-order-clientlist',
    props: true,
    component: UserOrderClientList,
    meta: {
        title: '客户订单',
        login: false
    }
},
{
    path: '/user/order/after/:active',
    name: 'user-order-after',
    props: true,
    component: UserAfterSaleList,
    meta: {
        title: '售后订单',
        login: false
    }
},
{
    path: '/user/coupon/list/:active',
    name: 'user-coupon-list',
    props: true,
    component: UserCouponList
},
{
    path: '/user/refund/list',
    name: 'user-refund-list',
    component: UserRefundList
},
{
    path: '/user/business/card',
    name: 'user-business-card',
    components: {
        default: UserBusinessCard,
        tabbar: HomeTabbar
    },
    meta: {
        keepAlive: false,
        title: '个人中心',
        login: false
    }
},
{
    path: '/user/business/customers',
    name: 'user-business-customers',
    component: UserBusinessCustomers,
    meta: {
        title: '客户信息',
        login: false
    }
},
{
    path: '/user/myIncome',
    name: 'user-my-income',
    component: UserMyIncome,
    meta: {
        title: '平台结算',
    }
},
{
    path: '/user/business/admin',
    name: 'user-business-admin',
    component: UserBusinessAdmin,
    meta: {
        title: '经理管理',
    }
},
{
    path: '/user/admin/class',
    name: 'user-admin-class',
    component: UserAdminClass,
    meta: {
        title: '经理管理',
    }
},
{
    path: '/user/admin/detail/:managerId',
    name: 'user-admin-detail',
    props: true,
    component: UserAdminDetail,
    meta: {
        title: '经理详情',
    }
},
{
    path: '/user/validation/customers',
    name: 'user-validation-customers',
    component: UserValidationCustomers,
    meta: {
        title: '验证客户信息',
        login: false
    }
},
{
    path: '/user/business/classification/:id',
    name: 'user-business-classification',
    component: UserBusinessClassification,
    meta: {
        title: '客户分类信息',
        login: false
    }
},
{
    path: '/user/business/followfication/:id',
    name: 'user-business-followfication',
    component: UserBusinessfollowfication,
    meta: {
        title: '客户分类信息',
        login: false
    }
},
{
    path: '/user/business/customer/detail/:userId',
    name: 'user-business-customer-detail',
    props: true,
    component: UserBusinessCustomerDetail,
    meta: {
        title: '客户详情',
        login: false
    }
},
{
    path: '/user/card/share',
    name: 'user-card-share',
    component: UserCardShare,
    meta: {
        title: '我的名片',
        login: false
    }
},
{
    path: '/user/card/kf',
    name: 'kf-card',
    component: UserCardKf,
    meta: {
        title: '我的客服',
        login: false
    }
},
{
    path: '/user/about/us',
    name: 'about-us',
    component: AboutUs,
    meta: {
        title: "关于我们"
    }
},
{
    path: '/user/protocol',
    name: 'user-protocol',
    component: Protocol,
    meta: {
        title: "用户协议"
    }
},
{
    path: '/user/receiveqrcode',
    name: 'receive-qrcode',
    component: ReceiveQrCode,
    meta: {
        title: "收款码"
    }
},
{
    path: '/user/moduleSettlement/details',
    name: 'module-settlement',
    component: ModuleSettlement,
    meta: {
        title: "结算详情"
    }
},
{
    path: '/user/member/customers',
    name: 'member-customers',
    component: MemberCustomers,
    meta: {
        title: "会员客户"
    }
},
/***
 * @description:十元充值卡
 */
{
    path: '/user/recharge/tencard',
    name: 'tencard',
    component: TenCard,
    meta: {
        title: "权益选购"
    }
}
];
